package com.aia.prm.web.json;

import org.apache.log4j.Logger;

import com.aia.ann.domain.Insu;
import com.aia.ann.service.ChiefService;
import com.aia.prm.service.DefaultService;
import com.cfh.util.Tools;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

@SuppressWarnings("serial")
public class PrmSmsJson extends ActionSupport {
	private static final Logger logger = Logger.getLogger(PrmSmsJson.class);
	private String mobile;
	private DefaultService defaultService;

	public String execute() throws Exception {
		try {
			if (logger.isDebugEnabled()) {
				logger.debug("PrmSmsJson - start"); //$NON-NLS-1$
			}

			getDefaultService().PrmSmsJson(this);

			if (logger.isDebugEnabled()) {
				logger.debug("PrmSmsJson - end"); //$NON-NLS-1$
			}

			return Tools.smartReturn((ActionSupport) this);
		} catch (Exception e) {
			logger.error("Unknown Error:" + e, e);
			throw new RuntimeException(e);
		}
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public DefaultService getDefaultService() {
		return defaultService;
	}

	public void setDefaultService(DefaultService defaultService) {
		this.defaultService = defaultService;
	}
}
